import http from '@/api/http';

export function fetchItems() {
  return http.get('/api/app/master/item').then(res => res.data);
}

export function fetchUoms() {
  return http.get('/api/app/master/uom').then(res => res.data);
}

// 分类1 - 对应mstr_cat_00表
export function fetchCategories1() {
  return http.get('/api/app/master/cat1').then(res => res.data);
}

// 分类2 - 对应mstr_cat_01表
export function fetchCategories2() {
  return http.get('/api/app/master/cat2').then(res => res.data);
}

// 分类3 - 对应mstr_cat_02表
export function fetchCategories3() {
  return http.get('/api/app/master/cat3').then(res => res.data);
}

export function fetchSites() {
  return http.get('/api/app/master/sites').then(res => res.data);
} 